import React from "react";
import { Input as AntdInput, InputProps } from "../../antd/index";

import "./style/index";
import type Group from "./Group";
import type Search from "./Search";
import type TextArea from "./TextArea";
import type Password from "./Password";

export interface Props extends InputProps {}

class Input extends React.Component<Props> {
  static Group: typeof Group;
  static Search: typeof Search;
  static TextArea: typeof TextArea;
  static Password: typeof Password;

  static defaultProps = {
    type: "text",
  };

  constructor(props: Props) {
    super(props);
  }
  render() {
    return <AntdInput {...this.props} />;
  }
}

export default Input;
